package com.qaml.mes.device.domain.convert;

import com.qaml.mes.device.dao.CheckUpkeepRecordItemDO;
import com.qaml.mes.device.dto.eqp.CheckUpkeepRecordItemDTO;
import com.qaml.mes.device.vo.eqp.CheckUpkeepRecordItemVO;
import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;

import java.util.List;

/**
 * @Filename：CheckUpkeepRecordItemConvert
 * @Description 检保任务条目转换
 * @Author：zhangzhifeng
 * @Project：mes-device
 * @Date：2024/3/8 11:54
 * @ClassName CheckUpkeepRecordItemConvert
 * @Description 检保记录条目
 * @Author leikai
 * @Date 2024/3/8 0008 13:24
 * @Version 1.0
 */
@Mapper
public interface CheckUpkeepRecordItemConvert {

    CheckUpkeepRecordItemConvert INSTANCE = Mappers.getMapper(CheckUpkeepRecordItemConvert.class);

    /**
     * @param checkUpkeepRecordItemDOList
     * @return
     * @Description 批量 DO--> VO
     */
    List<CheckUpkeepRecordItemVO> toVOlist(List<CheckUpkeepRecordItemDO> checkUpkeepRecordItemDOList);

    /**
     * @param checkUpkeepRecordItemDO
     * @return
     * @Description DO--> VO
     */
    CheckUpkeepRecordItemVO do2VO(CheckUpkeepRecordItemDO checkUpkeepRecordItemDO);


    CheckUpkeepRecordItemDO dto2DO(CheckUpkeepRecordItemDTO checkUpkeepRecordItemDTO);

    List<CheckUpkeepRecordItemDO> dtoList2DO(List<CheckUpkeepRecordItemDTO> checkUpkeepRecordItemDTOList);

    List<CheckUpkeepRecordItemVO> dos2VOS(List<CheckUpkeepRecordItemDO> records);

}